/*
 * @Descripttion:
 * @LastEditors: xzh
 * @LastEditTime: 2024-04-21 14:38:39
 */
import { btnTypeEnum, tableTool_Inf } from "@/components/dile-table/index.type";
import AbnormalManagePower_Constants from "../../power-abnormalManage";
/*
 * @Descripttion:设备基本信息权限常量
 * @LastEditors: xzh
 * @LastEditTime: 2023-09-12 20:10:11
 */
export default class EquipBaseInfoPower_Constants extends AbnormalManagePower_Constants {
  /**
   * @Author: xzh
   * @Descripttion: 设备档案工具栏
   * @Param:
   */
  static equipArchivesTools: Array<tableTool_Inf> = [
    {
      // t("table.btnArr.add"),
      label: "table.btnArr.add",
      code: "add",
      btnType: btnTypeEnum.button,
      plain: false,
      customBehavior: true,
    },
    {
      // t("table.btnArr.edit"),
      label: "table.btnArr.edit",
      code: "edit",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.delete"),
      label: "table.btnArr.delete",
      code: "delete",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.qrCode"),
      label: "table.btnArr.qrCode",
      code: "qrCode",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("page.equipManageArr.equipResume"),
      label: "page.equipManageArr.equipResume",
      code: "equipResume",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    // {
    //   // t("page.equipManageArr.equipArchivesArr.btnArr.faultRepair"),
    //   label: "page.equipManageArr.equipArchivesArr.btnArr.faultRepair",
    //   code: "faultRepair",
    //   btnType: btnTypeEnum.button,
    //   customBehavior: true,
    // },
    // {
    //   // t("page.equipManageArr.equipArchivesArr.btnArr.equipRepair"),
    //   label: "page.equipManageArr.equipArchivesArr.btnArr.equipRepair",
    //   code: "equipRepair",
    //   btnType: btnTypeEnum.button,
    //   customBehavior: true,
    // },
    // {
    //   // t("page.equipManageArr.equipArchivesArr.btnArr.equipUpkeep"),
    //   label: "page.equipManageArr.equipArchivesArr.btnArr.equipUpkeep",
    //   code: "equipUpkeep",
    //   btnType: btnTypeEnum.button,
    //   customBehavior: true,
    // },
    {
      // t("table.btnArr.export"),
      label: "table.btnArr.export",
      code: "export",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.search"),
      label: "table.btnArr.search",
      code: "keyWordFilter",
      btnType: btnTypeEnum.keyWordFilter,
      position: "right",
    },
  ];
  /**
   * @Author: xzh
   * @Descripttion: 设备状态工具栏
   * @Param:
   */
  static equipStateTools: Array<tableTool_Inf> = [
    {
      // t("table.btnArr.add"),
      label: "table.btnArr.add",
      code: "add",
      btnType: btnTypeEnum.button,
      plain: false,
      customBehavior: true,
    },
    {
      // t("table.btnArr.edit"),
      label: "table.btnArr.edit",
      code: "edit",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.delete"),
      label: "table.btnArr.delete",
      code: "delete",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.import"),
      label: "table.btnArr.import",
      code: "import",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.export"),
      label: "table.btnArr.export",
      code: "export",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.search"),
      label: "table.btnArr.search",
      code: "keyWordFilter",
      btnType: btnTypeEnum.keyWordFilter,
      position: "right",
    },
  ];

  /**
   * @Author: xzh
   * @Descripttion: 设备类型工具栏
   * @Param:
   */
  static equipTypeTools: Array<tableTool_Inf> = [
    {
      // t("table.btnArr.add"),
      label: "table.btnArr.add",
      code: "add",
      btnType: btnTypeEnum.button,
      plain: false,
      customBehavior: true,
    },
    {
      // t("table.btnArr.edit"),
      label: "table.btnArr.edit",
      code: "edit",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.delete"),
      label: "table.btnArr.delete",
      code: "delete",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.enable"),
      label: "table.btnArr.enable",
      code: "enable",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.disEnable"),
      label: "table.btnArr.disEnable",
      code: "disEnable",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("page.equipManageArr.equipArchivesArr.btnArr.alarmInfo"),
      label: "page.equipManageArr.equipArchivesArr.btnArr.alarmInfo",
      code: "alarmInfo",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.equipManageArr.equipArchivesArr.btnArr.equipPoint"),
      label: "table.equipManageArr.equipArchivesArr.btnArr.equipPoint",
      code: "equipPoint",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.search"),
      label: "table.btnArr.search",
      code: "keyWordFilter",
      btnType: btnTypeEnum.keyWordFilter,
      position: "right",
    },
  ];
  /**
   * @Author: xzh
   * @Descripttion: 设备注册工具栏
   * @Param:
   */
  static equipRegisterTools: Array<tableTool_Inf> = [
    {
      // t("table.btnArr.add"),
      label: "table.btnArr.add",
      code: "add",
      btnType: btnTypeEnum.button,
      plain: false,
      customBehavior: true,
    },
    {
      // t("table.btnArr.edit"),
      label: "table.btnArr.edit",
      code: "edit",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.delete"),
      label: "table.btnArr.delete",
      code: "delete",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.enable"),
      label: "table.btnArr.enable",
      code: "enable",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.disEnable"),
      label: "table.btnArr.disEnable",
      code: "disEnable",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.search"),
      label: "table.btnArr.search",
      code: "keyWordFilter",
      btnType: btnTypeEnum.keyWordFilter,
      position: "right",
    },
  ];
}
